ProfilerDomain

class ProfilerDomain : Domain

ProfilerDomain represents Profiler protocol domain request/response operations and events that can be captured.

Functions

consoleProfileFinished
Link copied to clipboard
fun consoleProfileFinished(): Flowable<ConsoleProfileFinishedEvent>
Returns observable capturing all Profiler.consoleProfileFinished events.
consoleProfileStarted
Link copied to clipboard
fun consoleProfileStarted(): Flowable<ConsoleProfileStartedEvent>
Sent when new profile recording is started using console.profile() call.
description
Link copied to clipboard
fun description(): String
Returns domain description.
disable
Link copied to clipboard
fun disable(): Single<RequestResponseFrame>
disableCounters
Link copied to clipboard
fun disableCounters(): Single<RequestResponseFrame>
Disable counters collection.
disableRuntimeCallStats
Link copied to clipboard
fun disableRuntimeCallStats(): Single<RequestResponseFrame>
Disable run time call stats collection.
enable
Link copied to clipboard
fun enable(): Single<RequestResponseFrame>
enableCounters
Link copied to clipboard
fun enableCounters(): Single<RequestResponseFrame>
Enable counters collection.
enableRuntimeCallStats
Link copied to clipboard
fun enableRuntimeCallStats(): Single<RequestResponseFrame>
Enable run time call stats collection.
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
getBestEffortCoverage
Link copied to clipboard
fun getBestEffortCoverage(): Single<GetBestEffortCoverageResponse>
Collect coverage data for the current isolate.
getCounters
Link copied to clipboard
fun getCounters(): Single<GetCountersResponse>
Retrieve counters.
getDependencies
Link copied to clipboard
open override fun getDependencies(): List<Domain>
Returns list of dependant domains that should be enabled prior to enabling this domain.
getRuntimeCallStats
Link copied to clipboard
fun getRuntimeCallStats(): Single<GetRuntimeCallStatsResponse>
Retrieve run time call stats.
name
Link copied to clipboard
fun name(): String
Returns domain name.
preciseCoverageDeltaUpdate
Link copied to clipboard
fun preciseCoverageDeltaUpdate(): Flowable<PreciseCoverageDeltaUpdateEvent>
Reports coverage delta since the last poll (either from an event like this, or from takePreciseCoverage for the current isolate.
setSamplingInterval
Link copied to clipboard
fun setSamplingInterval(input: SetSamplingIntervalRequest): Single<RequestResponseFrame>
Changes CPU profiler sampling interval.
start
Link copied to clipboard
fun start(): Single<RequestResponseFrame>
startPreciseCoverage
Link copied to clipboard
fun startPreciseCoverage(input: StartPreciseCoverageRequest): Single<StartPreciseCoverageResponse>
Enable precise code coverage.
startTypeProfile
Link copied to clipboard
fun startTypeProfile(): Single<RequestResponseFrame>
Enable type profile.
stop
Link copied to clipboard
fun stop(): Single<StopResponse>
stopPreciseCoverage
Link copied to clipboard
fun stopPreciseCoverage(): Single<RequestResponseFrame>
Disable precise code coverage.
stopTypeProfile
Link copied to clipboard
fun stopTypeProfile(): Single<RequestResponseFrame>
Disable type profile.
takePreciseCoverage
Link copied to clipboard
fun takePreciseCoverage(): Single<TakePreciseCoverageResponse>
Collect coverage data for the current isolate, and resets execution counters.
takeTypeProfile
Link copied to clipboard
fun takeTypeProfile(): Single<TakeTypeProfileResponse>
Collect type profile.

Sources

jvm source
Link copied to clipboard